public class DateProblem {
    // CSOFF: MagicNumber








    static int [] RunNian = {0,31,29,31,30,31,30,31,31,30,31,30,31};
    static int [] PingNian = {0,31,28,31,30,31,30,31,31,30,31,30,31};
    static void show(int []date)
    {
        int []dateOut = new int[3];
        if(!isRunnian(date[0]))
        {
            dateOut[2] = date[2]+2 >PingNian[date[1]]?(date[2]+2)%PingNian[date[1]]:date[2]+2;
            if(dateOut[2] == 1 || dateOut[2] == 2)
            {
                dateOut[1] = date[1]+1>12?1:date[1]+1;
            }
            else{
                dateOut[1] = date[1];
            }
            if(dateOut[1] == 1&&dateOut[2]<=2)
            dateOut[0] = date[0]+1;
            else{
                dateOut[0] = date[0];
            }
        }
        else
        {
            dateOut[2] = date[2]+2 >RunNian[date[1]]?(date[2]+2)%RunNian[date[1]]:date[2]+2;
            if(dateOut[2] == 1 || dateOut[2] == 2)
            {
                dateOut[1] = date[1]+1>12?1:date[1]+1;
            }
            else{
                dateOut[1] = date[1];
            }
            if(dateOut[1] == 1&&dateOut[2]<=2)
                dateOut[0] = date[0]+1;
            else{
                dateOut[0] = date[0];
            }
        }
        System.out.println(dateOut[0]+"-"+dateOut[1]+"-"+dateOut[2]);
    }

    static boolean isRunnian(int year)
    {
        if(year%400==0)
            return true;
        else
        {
            if(year%4==0&&year%100!=0)
                return true;
            else
                return false;
        }
        // CSON: MagicNumber
    }
}
